package com.shenmazong.ware.service.impl;

import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.MessageVo;
import com.shenmazong.ware.service.MessageService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2022/7/5 16:17
 */

@Component
public class MessageServiceImpl implements MessageService {

    @Override
    public ResultResponse sendMessage(@RequestBody MessageVo messageVo) {
        System.out.println("sendMessage: 熔断了");
        return ResultResponse.FAILED(500, "发生熔断了");
    }

}
